package com.shanzmoo.db.product.entity.dto;

import com.shanzmoo.db.picture.entity.ProductInfoPictureEntity;
import com.shanzmoo.db.picture.entity.ProductPictureEntity;
import com.shanzmoo.db.product.entity.ProductSkuEntity;
import com.shanzmoo.db.product.entity.ProductSpuEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * spu保存对象
 * @author xueqz
 * @date 2020/12/15
 */
@Data
@ApiModel(value="spu保存对象")
public class ProductSaveDto {

    @Valid
    @NotNull
    @ApiModelProperty("spuEntity")
    private ProductSpuEntity spuEntity;

    @ApiModelProperty("skuEntityList" )
    private List<ProductSkuEntity> skuEntityList;


    @ApiModelProperty("商品详情图集合")
    private List<ProductInfoPictureEntity> infoPictureList;

    @ApiModelProperty("商品图片集合")
    private List<ProductPictureEntity> productPictureList;


}
